home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
ABUSESRC.ZIP
/
AbuseSrc
/
macabuse
/
imlib
/
include
/
loader.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-20
|
973b
|
41 lines
#ifndef __LOADER_HPP_
#define __LOADER_HPP_
#include "image.hpp"
#include "palette.hpp"
#include "image24.hpp"
// supported graphics file formats so far..
enum graphics_type
{ LOADER_not_supported,
LOADER_mdl, // propritary
LOADER_spe, // propritary
LOADER_ppm, // portable pixmap
LOADER_bmp8, // 8 bit color Microsoft Bitmap
LOADER_bmp24, // 24 bit color Microsoft Bitmap
LOADER_pcx8, // 8 bit color PC paintbrush
LOADER_pcx24, // 24 bit color PC paintbrush
LOADER_xwd, // X-window dump format
LOADER_pic, // Pic (used in Gl's)
LOADER_lbm // Delux Paint
} ;
graphics_type tell_file_type(char *filename);
int tell_color_size(char *filename); // returns 8 or 24
short load_any(char *filename, image **&images,
palette *&pal, short &total_read);
image24 *load_any24(char *filename);
#endif